#ifndef tutorialWeightSystematics_h
#define tutorialWeightSystematics_h

#include "SystematicWeightBase.hxx"
#include "SystematicSource.hxx"

/// This is a normalization systematic. It takes into account the uncertainty on the FGD mass introduced in the MC

class tutorialWeightSystematics: public SystematicWeightBase {
public:
  
  tutorialWeightSystematics();
  
  virtual ~tutorialWeightSystematics() {}
  
  /// Apply this systematic
  Float_t Apply(const ToyVariations& toy, SystBoxB& box, const AnaEventB& event);
  
protected:
  
  /// FGD mass correction and error
  Float_t _scintmass_corr;
  Float_t _scintmass_err;
  Float_t _watermass_corr;
  Float_t _watermass_err;

  SystematicSource _scintmass;
  SystematicSource _watermass;

};

#endif
